package com.wechatmall.api.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 实体类
 * </p>
 *
 * @author zpc
 * @since 2025-09-24 02:24:13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "Merchants", description = "实体")
public class Merchants implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID", example = "1", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private String id;

    @Schema(description = "用户名", example = "示例值")
    private String username;

    @Schema(description = "密码", example = "示例值")
    @TableField("`password`")
    private String password;

    @Schema(description = "名称", example = "示例值")
    @TableField("`name`")
    private String name;

    private String contactName;

    @Schema(description = "电话", example = "示例值")
    private String phone;

    @Schema(description = "邮箱", example = "示例值")
    private String email;

    @Schema(description = "地址", example = "示例值")
    private String address;

    private String businessLicense;

    @Schema(description = "状态", example = "示例值")
    @TableField("`status`")
    private String status;

    @Schema(description = "是否是管理源", example = "示例值")
    private String isAdmin;

    @Schema(description = "最后一次登录时间", example = "示例值")
    private String lastLoginTime;

    private String createdAt;

    private String updatedAt;
}